import java.io.File;
import java.io.IOException;

/*
 * @author zzr
 * @date: 2025/04/21  10:52
 * @description:
 */
public class IO1 {
    public static void main(String[] args) throws IOException {
//        File file = new File("C:/Users/laideji/test.txt");
        File file = new File("./test.txt");
        System.out.println(file.getParent());
        System.out.println(file.getName());
        System.out.println(file.getPath());
        System.out.println(file.getAbsolutePath());
        System.out.println(file.getCanonicalPath());
    }
}
